﻿<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPageContent.master" AutoEventWireup="false" CodeFile="BudgetModify.aspx.vb" Inherits="BudgetModify" %>

<%@ Register Src="~/UserControls/DDL.ascx" TagName="DoubleFilteredDropDownList" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/OneFilteredDropDownList.ascx" TagName="OneFilteredDropDownList"
    TagPrefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    
    <style type="text/css">
    .classImage
    {
        background: url(Design/images/Grid/Delete.gif);
        background-position: 0 0;
        width: 14px;
        height: 13px;
    }
    /*.classHoveredImage
    {
        background-position: 0 -100px;
    }
    .classPressedImage
    {
        background-position: 0 -200px;
    }
    </style>

    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

    <script type="text/javascript">

        var DeleteButton;
        var id;

        function AspConfirm(sender, args) {
            //debugger;
            DeleteButton = sender;
            //return false;
            radprompt('Reason For Deleting ?', promptCallBackAspFn, 330, 160, null, 'Delete Reason', 'Delete');
        }
        function promptCallBackAspFn(arg) {
            //debugger;
            if (arg != null && arg != "") {
                document.getElementById("<%=hdnReason.ClientID %>").value = arg;
                if (DeleteButton.name != "") {
                    //ImageButton is pressed
                    var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
                    ajaxManager.ajaxRequestWithTarget(DeleteButton.name, "");
                }
                else {
                    //LinkButton is pressed
                    window.location = DeleteButton.href;
                }
            }
            else {
            }
        }

        function Confirm(sender, args) {
                    //debugger;
                    DeleteButton = sender;
                    id = DeleteButton._uniqueID;
                    DeleteButton.set_autoPostBack(false);
                    radprompt('Reason For Deleting ?', promptCallBackFn, 330, 160, null, 'Delete Reason', 'Delete');
        }

        function promptCallBackFn(arg) {
            //debugger;
            if (arg != null && arg != "") {
                document.getElementById("<%=hdnReason.ClientID %>").value = arg;
                var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
                ajaxManager.ajaxRequestWithTarget(id, "");
                //DeleteButton.set_autoPostBack(true);
            }
            else {
                //radprompt('Reason For Deleting ?', promptCallBackFn, 330, 160, null, 'Delete Reason', '');
                //DeleteButton.set_autoPostBack(false);
            }
        }

        </script>

        </telerik:RadScriptBlock>


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeaderPlaceHolder" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">






    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rgBudgetModify">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgBudgetModify" LoadingPanelID="RadAjaxLoadingPanel1"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadWindowManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgBudgetModify" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="20">
    </telerik:RadAjaxLoadingPanel>

     <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
     </telerik:RadWindowManager>

     <br /><br /><br />



     <telerik:RadGrid ID="rgBudgetModify" runat="server" GridLines="None" DataSourceID="odsBudgetModify"
            AllowAutomaticDeletes="True" AllowAutomaticInserts="True" ShowFooter="false" AllowAutomaticUpdates="True"
            Skin="MetroTouch" AllowPaging="True" AutoGenerateColumns="False" GroupPanel-Text="<%$ Resources:MainGrid ,GroupPanelText %>"
            CellSpacing="0">
            <MasterTableView Width="100%"
                CommandItemDisplay="TopAndBottom" DataKeyNames="BMID" TableLayout="Fixed" HorizontalAlign="NotSet"
                DataSourceID="odsBudgetModify" NoMasterRecordsText="<%$ Resources:MainGrid , NoMasterRecordsText %>">
                <CommandItemTemplate>
                    <table>
                        <tr>
                            <td>
                                <asp:ImageButton ID="ibtnInitInsert" CommandName="InitInsert" runat="server" ImageUrl="~/Design/images/Grid/AddRecord.gif" />
                                <asp:LinkButton ID="lbtnInitInsert" runat="server" Font-Size="14px" Text="<%$ Resources:MainGrid , AddNew %>"
                                    CommandName="InitInsert" Visible="true" />&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:ImageButton ID="ibtnEditSelected" CommandName="EditSelected" runat="server"
                                    ImageUrl="~/Design/images/Grid/Edit.gif" />
                                <asp:LinkButton ID="lbtnEditSelected" runat="server" Font-Size="14px" Text="<%$ Resources:MainGrid , EditSelected %>"
                                    CommandName="EditSelected" Visible="true" />&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:ImageButton ID="ibtnDeleteSelected" CommandName="DeleteSelected" OnClientClick="AspConfirm(this,'');return false;" runat="server"
                                    ImageUrl="~/Design/images/Grid/Delete.gif" />
                                <asp:LinkButton ID="lbtnDeleteSelected" Font-Size="14px" OnClientClick="AspConfirm(this,'');return false;"
                                    runat="server" Text="<%$ Resources:MainGrid , DeleteSelected %>" CommandName="DeleteSelected" />&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:ImageButton ID="ibtnRebindGrid" CommandName="RebindGrid" runat="server" ImageUrl="~/Design/images/Grid/Refresh.gif" />
                                <asp:LinkButton ID="lbtnRebindGrid" Font-Size="14px" runat="server" Text="<%$ Resources:MainGrid , Refresh %>"
                                    CommandName="RebindGrid" />
                            </td>
                        </tr>
                    </table>
                </CommandItemTemplate>
                
                <Columns>
                
                <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="ImageButton">
                    <HeaderStyle Width="30px" />
                    <ItemStyle Width="30px" />
                </telerik:GridEditCommandColumn>

                <telerik:GridBoundColumn SortExpression="BMID" HeaderButtonType="TextButton" Visible="false"
                     DataField="BMID" UniqueName="BMID" >
                </telerik:GridBoundColumn>
                
                <telerik:GridBoundColumn SortExpression="BMYear" HeaderButtonType="TextButton"
                     DataField="BMYear" UniqueName="BMYear" meta:ResourceKey="gbcBMYear" >
                   <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                   <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </telerik:GridBoundColumn>
                
                <telerik:GridBoundColumn SortExpression="BMNo" HeaderButtonType="TextButton"
                     DataField="BMNo" UniqueName="BMNo" meta:ResourceKey="gbcBMNo" >
                   <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                   <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </telerik:GridBoundColumn>

                <telerik:GridDateTimeColumn PickerType="DatePicker" SortExpression="BMDate"
                    DataFormatString="{0:MM/dd/yyyy}" ShowFilterIcon="false"
                    HeaderButtonType="TextButton" DataField="BMDate" UniqueName="BMDate"
                    meta:ResourceKey="gbcBTDate">
                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                </telerik:GridDateTimeColumn>

                <telerik:GridBoundColumn DataField="ProgramNo"
                    SortExpression="ProgramNo" UniqueName="Program" Visible="false"/>
                <telerik:GridBoundColumn DataField="AccountNo"
                    SortExpression="AccountNo" UniqueName="Account" Visible="false"/>

                <telerik:GridDropDownColumn DataField="ProgramNo" DataSourceID="odsProgram" meta:ResourceKey="gbcProgram"
                    ListTextField="<%$ Resources:SystemResource, Program %>" ListValueField="ProgramNo"
                    UniqueName="ProgramNo" EnableEmptyListItem="True">
                    <HeaderStyle Width="150px" />
                    <ItemStyle Width="150px" />
                </telerik:GridDropDownColumn>
                                                            
                <telerik:GridDropDownColumn DataField="AccountNo" DataSourceID="odsAccount" meta:ResourceKey="gbcAccount"
                    ListTextField="<%$ Resources:SystemResource, Account %>" ListValueField="AccountNo"
                    UniqueName="AccountNo" EnableEmptyListItem="True">
                    <HeaderStyle Width="150px" />
                    <ItemStyle Width="150px" />
                </telerik:GridDropDownColumn>

                <telerik:GridBoundColumn DataField="Amount" meta:ResourceKey="gbcAmount"
                    SortExpression="Amount" UniqueName="Amount" Visible="true" DataFormatString="{0:###,###.##}">
                    <HeaderStyle Width="90px" />
                    <ItemStyle Width="90px" />
                </telerik:GridBoundColumn>

                
                <telerik:GridBoundColumn SortExpression="Remarks" HeaderButtonType="TextButton"
                     DataField="Remarks" UniqueName="Remarks" meta:ResourceKey="gbcRemarks">
                   <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="150px" />
                   <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="150px" />
                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn SortExpression="RecordStatus" HeaderButtonType="TextButton" Visible="false"
                     DataField="RecordStatus" UniqueName="RecordStatus" >
                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn SortExpression="LastUpdateBy" HeaderButtonType="TextButton" Visible="false"
                     DataField="LastUpdateBy" UniqueName="LastUpdateBy" >
                </telerik:GridBoundColumn>

                <telerik:GridDateTimeColumn PickerType="DatePicker" SortExpression="LastUpdateDate"
                    DataFormatString="{0:MM/dd/yyyy}" ShowFilterIcon="false" Visible="false"
                    DataField="LastUpdateDate" UniqueName="LastUpdateDate">
                </telerik:GridDateTimeColumn>

                <telerik:GridBoundColumn SortExpression="DeleteReason" HeaderButtonType="TextButton" Visible="false"
                     DataField="DeleteReason" UniqueName="DeleteReason" meta:ResourceKey="gbcDeleteReason" >
                   <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                   <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </telerik:GridBoundColumn>

                <telerik:GridTemplateColumn>
                    <HeaderStyle Width="30px" />
                    <ItemStyle Width="30px" />
                    <ItemTemplate>
                        <asp:ImageButton ID="rbtnDelete" CommandName="Delete" OnClientClick="AspConfirm(this,'');return false;" runat="server"
                                    ImageUrl="~/Design/images/Grid/Delete.gif" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>

                </Columns>
                        <EditFormSettings ColumnNumber="2" EditFormType="Template" CaptionDataField="ID"
                            CaptionFormatString="Edit properties of {0}" InsertCaption="New Line">
                            <FormTableItemStyle Wrap="False"></FormTableItemStyle>
                            <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
                            <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White"
                                Width="100%" />
                            <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" />
                            <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
                            <EditColumn ButtonType="ImageButton" InsertText="Insert User" UpdateText="Update record"
                                UniqueName="EditCommandColumn1" CancelText="Cancel edit">
                            </EditColumn>
                            <FormTableButtonRowStyle CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
                            <FormTemplate>
                                <table id="Table2" cellspacing="2" cellpadding="1" border="0" rules="none">
                                   
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblManrdpBMDate" runat="server" SkinID="Mandetory" Text="<%$ Resources:Controls, RequiredValidationText %>"></asp:Label>
                                            <asp:Label ID="lblBMDate" SkinID="KeyLabel" runat="server" meta:ResourceKey="lblBMDate"></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadDatePicker runat="server" ID="rdpBMDate" Culture="English (United States)"
                                                ShowPopupOnFocus="true" ValidationGroup="valPurchaseRequestHdr" DbSelectedDate='<%# Bind("BMDate") %>'>
                                                <DateInput ID="DateInput1" DateFormat="dd/MM/yyyy" runat="server">
                                                </DateInput></telerik:RadDatePicker>
                                            <asp:RequiredFieldValidator ID="rfvrdpBMDate" runat="server" ControlToValidate="rdpBMDate"
                                                ErrorMessage="<%$ Resources:Controls, ErrorMessage %>" ValidationGroup="valPurchaseRequestHdr"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblManrtbBMNo" runat="server" SkinID="Mandetory" Text="<%$ Resources:Controls, RequiredValidationText %>"></asp:Label>
                                            <asp:Label ID="lblBMNo" SkinID="KeyLabel" runat="server" meta:ResourceKey="lblBMNo"></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadTextBox ID="rtbBMNo" Text='<%# Bind("BMNo") %>' runat="server" Skin="MetroTouch" ValidationGroup="valPurchaseRequestHdr">
                                            </telerik:RadTextBox>
                                            <asp:RequiredFieldValidator ID="rfvrtbBMNo" runat="server" ControlToValidate="rtbBMNo"
                                                ErrorMessage="<%$ Resources:Controls, ErrorMessage %>" ValidationGroup="valPurchaseRequestHdr"></asp:RequiredFieldValidator>
                                        </td>

                                        <td >
                                            <asp:Label ID="lblManYear" runat="server" SkinID="Mandetory" Text="<%$ Resources:Controls, RequiredValidationText %>" ></asp:Label>
                                            <asp:Label ID="lblYear" SkinID="KeyLabel" runat="server" meta:ResourceKey="lblYear" ></asp:Label>
                                        </td>
                                        <td >
                                            <telerik:RadNumericTextBox ID="rntbYear" runat="server" Width="170px" MaxLength="4" MaxValue="2200" ValidationGroup="valBudgetModify"
                                             IncrementSettings-InterceptArrowKeys="true" IncrementSettings-InterceptMouseWheel="true" Text='<%# Bind("BMYear") %>' >
                                                <NumberFormat DecimalDigits="0" GroupSizes="4" />
                                            </telerik:RadNumericTextBox>
                                            <asp:RequiredFieldValidator ID="rfvrntbYear" runat="server" ControlToValidate="rntbYear" ErrorMessage="<%$ Resources:Controls, ErrorMessage %>" ValidationGroup="valBudgetModify"></asp:RequiredFieldValidator> 
                                        </td>

                                    </tr>
                                    
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblManProgram" runat="server" SkinID="Mandetory" Text="<%$ Resources:Controls, RequiredValidationText %>"></asp:Label>
                                            <asp:Label ID="lblProgramNo" SkinID="KeyLabel" runat="server" meta:ResourceKey="lblProgram"></asp:Label>
                                        </td>
                                        <td>
                                            <uc1:DoubleFilteredDropDownList ID="WUCProgram" IsRequired="true" runat="server" DataSourceId="odsProgram"
                                                DataTextField="<%$ Resources:SystemResource, Program %>" DataValueField="ProgramNo" 
                                                SelectedValue='<%# Bind("ProgramNo") %>' DefaultChoosedItem="ChooseOne" ValidationGroup="valBudgetModify" />
                                        </td>
                                        <td>
                                            <asp:Label ID="lblManAccount" runat="server" SkinID="Mandetory" Text="<%$ Resources:Controls, RequiredValidationText %>"></asp:Label>
                                            <asp:Label ID="lblAccountNo" SkinID="KeyLabel" runat="server" meta:ResourceKey="lblAccount"></asp:Label>
                                        </td>
                                        <td>
                                            <uc1:DoubleFilteredDropDownList ID="WUCAccount" IsRequired="true" runat="server" DataSourceId="odsAccount"
                                                DataTextField="<%$ Resources:SystemResource, Account %>" DataValueField="AccountNo" 
                                                SelectedValue='<%# Bind("AccountNo") %>' DefaultChoosedItem="ChooseOne" ValidationGroup="valBudgetModify" />
                                        </td>
                                    </tr>
                                    
                                    <tr>
                                        <td valign="top">
                                            <asp:Label ID="lblManrntbAmount" runat="server" SkinID="Mandetory" Text="<%$ Resources:Controls, RequiredValidationText %>"></asp:Label>
                                            <asp:Label ID="lblrntbAmount" runat="server" meta:ResourceKey="lblAmount" SkinID="KeyLabel"></asp:Label>
                                        </td>
                                        <td valign="top">
                                            <telerik:RadNumericTextBox ID="rntbAmount" runat="server" ValidationGroup="valBudgetModify"
                                                IncrementSettings-InterceptArrowKeys="true" IncrementSettings-InterceptMouseWheel="true"
                                                Text='<%# Bind("Amount") %>'>
                                                <NumberFormat DecimalDigits="2" GroupSizes="4" />
                                            </telerik:RadNumericTextBox>
                                            <asp:RequiredFieldValidator ID="rfvrntbAmount" runat="server" ControlToValidate="rntbAmount"
                                            ErrorMessage="<%$ Resources:Controls, ErrorMessage %>" ValidationGroup="valBudgetModify"></asp:RequiredFieldValidator>
                                        </td>
                                        <td valign="top">
                                            <asp:Label ID="lblRemarks" runat="server" meta:ResourceKey="lblRemarks"></asp:Label>
                                        </td>
                                        <td>
                                            <telerik:RadTextBox ID="rtbRemarks" Text='<%# Bind("Remarks") %>' runat="server" SkinID="Remarks">
                                            </telerik:RadTextBox>
                                        </td>
                                        
                                    </tr>
                                    <tr>
                                        <td colspan="6">
                                            <div style="margin-top: 10px">
                                                <telerik:RadButton ID="btnInsert" meta:ResourceKey="btnInsert" Visible='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "True", "False") %>'
                                                    runat="server" CommandName="PerformInsert" Icon-PrimaryIconCssClass="rbOk" CausesValidation="true" ValidationGroup="valBudgetModify">
                                                </telerik:RadButton>
                                                <telerik:RadButton ID="btnUpdate" meta:ResourceKey="btnUpdate" Visible='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "False", "True") %>'
                                                    runat="server" CommandName="Update" CausesValidation="true" ValidationGroup="valBudgetModify"
                                                    Icon-PrimaryIconCssClass="rbOk">
                                                </telerik:RadButton>
                                                &nbsp;
                                                <telerik:RadButton ID="btnCancel" meta:ResourceKey="btnCancel" runat="server" CausesValidation="False"
                                                    CommandName="Cancel" Icon-PrimaryIconCssClass="rbCancel" >
                                                </telerik:RadButton>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </FormTemplate>
                        </EditFormSettings>
                        <CommandItemSettings ExportToPdfText="Export to PDF" />
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn>
                            <HeaderStyle Width="20px" />
                        </ExpandCollapseColumn>
                        <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" HorizontalAlign="Center" Wrap="True" />
                    </MasterTableView>
                    <ValidationSettings CommandsToValidate="PerformInsert,Update" ValidationGroup="valEditMode" />
                    <ClientSettings AllowDragToGroup="False">
                        <Scrolling AllowScroll="false" ScrollHeight="400px" />
                        <Selecting AllowRowSelect="True" />
                    </ClientSettings>
                    <FilterMenu EnableTheming="True">
                        <CollapseAnimation Duration="200" Type="OutQuint" />
                    </FilterMenu>
                    <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                </telerik:RadGrid>

                <asp:HiddenField ID="hdnReason" runat="server" />
                <asp:HiddenField ID="hdnbtnID" runat="server" />


    <asp:ObjectDataSource ID="odsBudgetModify" runat="server" SelectMethod="QueryDatabase"
        TypeName="DBBudgetModifySP" DeleteMethod="QueryDatabase" 
        InsertMethod="QueryDatabase" UpdateMethod="QueryDatabase">
        <InsertParameters>
            <asp:Parameter DefaultValue="1" Name="QueryType" Type="Object" />
            <asp:Parameter DefaultValue="SaveBudgetModify" Name="Operation" Type="String" />
            <asp:Parameter Name="BMID" Type="String" />
            <asp:Parameter Name="BMNo" Type="String" />
            <asp:Parameter Name="BMYear" Type="String" />
            <asp:Parameter Name="BMDate" Type="String" />
            <asp:Parameter Name="ProgramNo" Type="String" />
            <asp:Parameter Name="AccountNo" Type="String" />
            <asp:Parameter Name="Amount" Type="String" />
            <asp:Parameter Name="Remarks" Type="String" />
            <asp:Parameter Name="RecordStatus" Type="String" />
            <asp:SessionParameter SessionField="UserName" Name="LastUpdateBy" Type="String" />
            <asp:Parameter Name="LastUpdateDate" Type="String" />
            <asp:Parameter Name="DeleteReason" Type="String" />
        </InsertParameters>
        <SelectParameters>
            <asp:Parameter DefaultValue="1" Name="QueryType" Type="Object" />
            <asp:Parameter DefaultValue="RtvBudgetModify" Name="Operation" Type="String" />
            <asp:Parameter Name="BMID" Type="String" />
            <asp:Parameter Name="BMNo" Type="String" />
            <asp:Parameter Name="BMYear" Type="String" />
            <asp:Parameter Name="ProgramNo" Type="String" />
            <asp:Parameter Name="AccountNo" Type="String" />
            <asp:Parameter Name="Amount" Type="String" />
            <asp:Parameter Name="BMDate" Type="String" />
            <asp:Parameter Name="Remarks" Type="String" />
            <asp:Parameter Name="RecordStatus" Type="String" />
            <asp:Parameter Name="LastUpdateBy" Type="String" />
            <asp:Parameter Name="LastUpdateDate" Type="String" />
            <asp:Parameter Name="DeleteReason" Type="String" />
        </SelectParameters>
        <DeleteParameters>
            <asp:Parameter DefaultValue="1" Name="QueryType" Type="Object" />
            <asp:Parameter DefaultValue="DeleteBudgetModify" Name="Operation" Type="String" />
            <asp:Parameter Name="BMID" Type="String" />
            <asp:Parameter Name="BMNo" Type="String" />
            <asp:Parameter Name="BMYear" Type="String" />
            <asp:Parameter Name="BMDate" Type="String" />
            <asp:Parameter Name="ProgramNo" Type="String" />
            <asp:Parameter Name="AccountNo" Type="String" />
            <asp:Parameter Name="Amount" Type="String" />
            <asp:Parameter Name="Remarks" Type="String" />
            <asp:Parameter Name="RecordStatus" Type="String" />
            <asp:SessionParameter SessionField="UserName" Name="LastUpdateBy" Type="String" />
            <asp:Parameter Name="LastUpdateDate" Type="String" />
            <asp:ControlParameter ControlID="hdnReason" PropertyName="Value" Name="DeleteReason" Type="String" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter DefaultValue="1" Name="QueryType" Type="Object" />
            <asp:Parameter DefaultValue="SaveBudgetModify" Name="Operation" Type="String" />
            <asp:Parameter Name="BMID" Type="String" />
            <asp:Parameter Name="BMNo" Type="String" />
            <asp:Parameter Name="BMYear" Type="String" />
            <asp:Parameter Name="BMDate" Type="String" />
            <asp:Parameter Name="ProgramNo" Type="String" />
            <asp:Parameter Name="AccountNo" Type="String" />
            <asp:Parameter Name="Amount" Type="String" />
            <asp:Parameter Name="Remarks" Type="String" />
            <asp:Parameter Name="RecordStatus" Type="String" />
            <asp:SessionParameter SessionField="UserName" Name="LastUpdateBy" Type="String" />
            <asp:Parameter Name="LastUpdateDate" Type="String" />
            <asp:Parameter Name="DeleteReason" Type="String" />
        </UpdateParameters>
    </asp:ObjectDataSource>


    <asp:ObjectDataSource ID="odsProgram" runat="server" 
        SelectMethod="QueryDatabase" TypeName="DBProgramSP" >
        <SelectParameters>
            <asp:Parameter DefaultValue="1" Name="QueryType" Type="Object" />
            <asp:Parameter DefaultValue="RtvProgram" Name="Operation" Type="String" />
            <asp:Parameter Name="ProgramNo" Type="String" />
            <asp:Parameter Name="ProgramDescAr" Type="String" />
            <asp:Parameter Name="ProgramDescEn" Type="String" />
            <asp:Parameter Name="Level" Type="String" />
            <asp:Parameter Name="isbranch" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    
    <asp:ObjectDataSource ID="odsAccount" runat="server" SelectMethod="QueryDatabase"
        TypeName="AccountsSP">
        <SelectParameters>
            <asp:Parameter DefaultValue="1" Name="QueryType" Type="Object" />
            <asp:Parameter DefaultValue="RtvAllChildAccounts" Name="Operation" Type="String" />
            <asp:Parameter Name="AccountNo" Type="String" />
            <asp:Parameter Name="AccountNameAr" Type="String" />
            <asp:Parameter Name="AccountNameEn" Type="String" />
            <asp:Parameter Name="ParentID" Type="String" />
            <asp:Parameter Name="Remarks" Type="String" />
            <asp:Parameter Name="AccountType" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>


</asp:Content>

